package com.crs.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Resource {

    private Long id;
    private String name;
    private String description;
    private Integer status;
    private String location;
    private Integer viewCount;
    private Integer borrowCount;
    private Integer allowReservation;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    private Long ownerId;
    private Integer categoryId;

    private User owner;
    private Resource_category resourceCategory;

}
